home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6422 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: ix.netcom.com!netnews
  2. From: paulmck@ix.netcom.com
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Turn off padding in structure declaration, How???
  5. Date: 24 Feb 1996 19:19:50 GMT
  6. Organization: Netcom
  7. Message-ID: <4gnocm$698@cloner4.netcom.com>
  8. References: <312e5bf7.2912240@news.csus.edu>
  9. Reply-To: paulmck@ix.netcom.com
  10. NNTP-Posting-Host: ix-nyc7-07.ix.netcom.com
  11. X-NETCOM-Date: Sat Feb 24 11:19:57 AM PST 1996
  12. X-Newsreader: IBM NewsReader/2 v1.03
  13.  
  14. In <312e5bf7.2912240@news.csus.edu>, wleong@sfsu.edu (Jerry Leong) writes:
  15. >Hi,
  16. >    I couldn't find any good thread regarding this problem, so I guess
  17. >I'll post the question up on the net. 
  18. >  I need to define a structure that has odd numbers of bytes. And I do
  19. >not want any internal padding being done on my structure. Obviously,
  20. >this is beyond my realm of knowledge. How can this be done ?
  21. >  Thanx in advance.
  22. >
  23. Depends on the compiler.  Microsoft has a #pragma that does this as well as
  24. a command-line option.  Borland has a command-line option to do this.
  25. I'm sure that GCC has a command-line option to do this as well.
  26.  
  27. Paul
  28.  
  29.